home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98c.txt
/
000062_icon-group-sender _Sat Oct 17 09:19:03 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from ursus.CS.Arizona.EDU (ursus.CS.Arizona.EDU [192.12.69.63])
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) with SMTP id JAA11648
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Sat, 17 Oct 1998 09:19:03 -0700 (MST)
Received: by ursus.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA08301; Sat, 17 Oct 1998 09:19:03 -0700
Date: Fri, 16 Oct 1998 10:34:35 -0700
From: Gregg Townsend <gmt@optima.CS.Arizona.EDU>
Message-Id: <9810161734.AA12630@hawk.CS.Arizona.EDU>
To: icon-group@optima.CS.Arizona.EDU, kaw@AbacusRT.com
Subject: Re: getch/Linux/Intel
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
From: Kurt Welgehausen <kaw@AbacusRT.com>
... getch() fails on any character with the high bit set...
With the high bit set, the cast from char to int is returning a negative
value, causing getch() to fail. Here's a patch for src/runtime/rlocal.r:
*** rlocal.old Fri Oct 16 10:29:05 1998
--- rlocal.r Fri Oct 16 10:30:58 1998
***************
*** 1457,1463 ****
}
if (! status) return -1;
! else return (int)c;
}
/*
--- 1457,1463 ----
}
if (! status) return -1;
! else return c & 0xFF;
}
/*
---------------------------------------------------------------------------
Gregg Townsend Gould-Simpson Building gmt@cs.arizona.edu
Staff Scientist 1040 E. 4th St. 32 13 45N 110 57 16W
Dept. of Computer Science PO Box 210077 tel: +1 520 621 4325
The University of Arizona Tucson, AZ 85721-0077 fax: +1 520 621 4246